<?php
/**
 * Created by JetBrains PhpStorm.
 * User: user
 * Date: 3/16/12
 * Time: 9:17 PM
 * To change this template use File | Settings | File Templates.
 */
class ProductController extends Zend_Controller_Action{

    public function init(){
        parent::init();
        $layoutPath = APPLICATION_PATH  . '/templates/front/default';
        $option = array ('layout' => 'index',
        		'layoutPath' => $layoutPath );
        Zend_Layout::startMvc ($option );
    }

    public function listproductAction(){
        $id = $this->_getParam('id',0);
        $products = new Front_Model_Product();
        $this->view->products = $products->listitem($id);
        
    }
    public function detailAction(){
		echo $this->_getParam('ma', 0);
    }
}
 
